<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象</title>
</head>
<body>
        <script>
            var arr = {         //对象的定义
               fank:1,
                eng:2,
                tom:3
            };
         //   console.log(arr.fank);        //读取的方式
        //    console.log(arr.eng);
         //   console.log(arr.tom)

            console.log(arr['fank']);       //读取的方式
            console.log(arr['eng']);
            console.log(arr['tom'])

            
        </script>
</body>
</html>